﻿using System.ComponentModel.DataAnnotations.Schema;

namespace FrameworkCore.Migrations.Data;

public class BaseEntity : IEntity<long>
{
    /// <summary>
    ///获取或设置实体标识符
    /// </summary>
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    public virtual long Id { get; set; }

    /// <summary>
    /// 获取或设置实体的备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 获取或设置实体的排序值
    /// </summary>
    public int? Sort { get; set; } = 0;

    /// <summary>
    /// 启用标识
    /// </summary>
    public bool? IsEnabled { get; set; } = true;
}
